Next: News Variables, Previous: Mail Variables, Up: Variables [Contents][Index]
message-required-news-headers a list of header
symbols. These headers will either be automatically generated,
or, if that’s impossible, they will be prompted for. The
following symbols are valid:
FromThis required header will be filled out with the result of
the message-make-from function, which depends on
the message-from-style,
user-full-name, user-mail-address
variables.
SubjectThis required header will be prompted for if not present already.
NewsgroupsThis required header says which newsgroups the article is to be posted to. If it isn’t present already, it will be prompted for.
OrganizationThis optional header will be filled out depending on the
message-user-organization variable.
message-user-organization-file will be used if
this variable is t. This variable can also be a
string (in which case this string will be used), or it can be
a function (which will be called with no parameters and
should return a string to be used).
LinesThis optional header will be computed by Message.
Message-IDThis required header will be generated by Message. A
unique ID will be created based on the date, time, user name
(for the local part) and the domain part. For the domain
part, message will look (in this order) at
message-user-fqdn, system-name,
mail-host-address and
message-user-mail-address (i.e.,
user-mail-address) until a probably valid fully
qualified domain name (FQDN) was found.
User-AgentThis optional header will be filled out according to the
message-newsreader local variable.
In-Reply-ToThis optional header is filled out using the
Date and From header of the article
being replied to.
ExpiresThis extremely optional header will be inserted according
to the message-expires variable. It is highly
deprecated and shouldn’t be used unless you know what
you’re doing.
DistributionThis optional header is filled out according to the
message-distribution-function variable. It is a
deprecated and much misunderstood header.
PathThis extremely optional header should probably never be
used. However, some very old servers require that
this header is present. message-user-path
further controls how this Path header is to
look. If it is nil, use the server name as the
leaf node. If it is a string, use the string. If it is
neither a string nor nil, use the user name
only. However, it is highly unlikely that you should need to
fiddle with this variable at all.
In addition, you can enter conses into this list. The
CAR of this cons should be a symbol. This
symbol’s name is the name of the header, and the
CDR can either be a string to be entered verbatim
as the value of this header, or it can be a function to be
called. This function should take no arguments, and return a
string to be inserted. For instance, if you want to insert
Mime-Version: 1.0, you should enter
(Mime-Version . "1.0") into the list.
If the list contains a cons where the CAR of
the cons is optional, the CDR of this
cons will only be inserted if it is non-nil.
If you want to delete an entry from this list, the following Lisp snippet might be useful. Adjust accordingly if you want to remove another element.
(setq message-required-news-headers
(delq 'Message-ID message-required-news-headers))
Other variables for customizing outgoing news articles:
message-syntax-checksControls what syntax checks should not be performed on outgoing posts. To disable checking of long signatures, for instance, add
(signature . disabled)
to this list.
Valid checks are:
approvedCheck whether the article has an Approved
header, which is something only moderators should
include.
continuation-headersCheck whether there are continuation header lines that don’t begin with whitespace.
control-charsCheck for invalid characters.
emptyCheck whether the article is empty.
existing-newsgroupsCheck whether the newsgroups mentioned in the
Newsgroups and Followup-To
headers exist.
fromCheck whether the From header seems
nice.
illegible-textCheck whether there is any non-printable character in the body.
invisible-textCheck whether there is any invisible text in the buffer.
long-header-linesCheck for too long header lines.
long-linesCheck for too long lines in the body.
message-idCheck whether the Message-ID looks
syntactically ok.
multiple-headersCheck for the existence of multiple equal headers.
new-textCheck whether there is any new text in the messages.
newsgroupsCheck whether the Newsgroups header
exists and is not empty.
quoting-styleCheck whether text follows last quoted portion.
repeated-newsgroupsCheck whether the Newsgroups and
Followup-to headers contains repeated group
names.
reply-toCheck whether the Reply-To header looks
ok.
senderInsert a new Sender header if the
From header looks odd.
sendsysCheck for the existence of version and sendsys commands.
shootCheck whether the domain part of the
Message-ID header looks ok.
shorten-followup-toCheck whether to add a Followup-to header
to shorten the number of groups to post to.
signatureCheck the length of the signature.
sizeCheck for excessive size.
subjectCheck whether the Subject header exists
and is not empty.
subject-cmsgCheck the subject for commands.
valid-newsgroupsCheck whether the Newsgroups and
Followup-to headers are valid
syntactically.
All these conditions are checked by default, except for
sender for which the check is disabled by
default if message-insert-canlock is
non-nil (see Canceling News).
message-ignored-news-headersRegexp of headers to be removed before posting. The
default is
‘^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc:\\|
^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:’.
message-default-news-headersThis string is inserted at the end of the headers in all message buffers that are initialized as news.
Next: News Variables, Previous: Mail Variables, Up: Variables [Contents][Index]